KERNAL_DIR ?= /home/linxincheng/imx6ull/bsp/kernel/linux-imx
PWD :=$(shell pwd)
obj-m := kernel_hello.o

modules:
	$(MAKE) -C $(KERNAL_DIR) M=$(PWD) modules
	@make clear
clear:
	@rm -f *.o *.mod *.mod.c
	@rm -rf *~ core .depend .tmp_versions Module.symvers modules.order -f
	@rm -f .*ko.cmd .*.o.cmd .*.o.d
	@rm -f *.unsigned

clean:
	@rm -f *.ko
